
Graphimation{

	noOfGeometries 1
	Derivation Text{
		text derivation
		font Courier
		size 60
		x 100
		y 80
		w 300
		h 80
		hitTest 0
	}
	
	noOfBrushes 1
	TextBrush SolidColorBrush{ Color{ 0.6 0.3 0.3 1 } opacity $text }

	noOfTransforms 8
	RepetitionScale Scale{ x $RepS y $RepS }
	F1T Translation{ x 100 y 100 }
	F2T Translation{ x 300 y 400 }
	F3T Translation{ x 700 y 250 }
	F4T Translation{ x 300 y 200 }
	F5T Translation{ x 80 y 220 }
	F6T Translation{ x 250 y 85 }
	FS Scale{ x 2 y 2 }

	noOfChildGxms 3
	Flake1 Graphimation{ data/patterns/tree.d2g }
	Flake2 Graphimation{ data/patterns/tree.d2g }
	Flake3 Graphimation{ data/patterns/tree.d2g }

	noOfExecutables 1
	Main Procedure{
		noOfCommands 23

		PushTransform{ F1T }
		RenderGxm{ Flake1 }
		PopTransform{ }

		PushTransform{ F2T }
		RenderGxm{ Flake2 }
		PopTransform{ }

		PushTransform{ F3T }
		RenderGxm{ Flake3 }
		PopTransform{ }
		
		PushTransform{ FS }

		PushTransform{ F4T }
		RenderGxm{ Flake1 }
		PopTransform{ }

		PushTransform{ F5T }
		RenderGxm{ Flake2 }
		PopTransform{ }

		PushTransform{ F6T }
		RenderGxm{ Flake3 }
		PopTransform{ }

		PopTransform{ }		

		PushTransform{ RepetitionScale }
		Fill{ Derivation TextBrush }
		PopTransform{ }		
	}

	noOfControllers 1
	CMain Const{
		target null
		begin 0
		end 22000
		loops 1

		value 0

		noOfChildren 10
		Linear{
			target $RepS
			begin 0
			end 22000
			loops 0

			beginValue 0.9
			endValue 1.4

			noOfChildren 0
		}

		Const{
			target $text
			begin 0
			end 11000
			loops 0

			value 0
			noOfChildren 0
		}
		Linear{
			target $text
			begin 16000
			end 17000
			loops 0

			beginValue 0
			endValue 1

			noOfChildren 0
		}
		Const{
			target $text
			begin 17000
			end 22000
			loops 0

			value 1
			noOfChildren 0
		}
		Trigger{
			begin 0
			targetGxm Flake1
			targetAnimation MainAnim
			
			noOfChildren 0
		}
		Trigger{
			begin 300
			targetGxm Flake1
			targetAnimation Grow
			
			noOfChildren 0			
		}

		Trigger{
			begin 0
			targetGxm Flake2
			targetAnimation MainAnim
			
			noOfChildren 0
		}
		Trigger{
			begin 5500
			targetGxm Flake2
			targetAnimation Grow
			
			noOfChildren 0			
		}

		Trigger{
			begin 0
			targetGxm Flake3
			targetAnimation MainAnim
			
			noOfChildren 0
		}
		Trigger{
			begin 11000
			targetGxm Flake3
			targetAnimation Grow
			
			noOfChildren 0			
		}
	}

	noOfAnimations 1
	MainAnim Animation{
		renderFunction Main
		controller CMain
		transitionTarget null
	}
}